public class Test {

    public static void func(Animal animal){
        animal.eat();
    }
    public static void walk(IRunning running){
        running.run();
    }

    public static void main(String[] args) {
        func(new Cat("mimi"));

        walk(new Cat("mimi"));
        walk(new Frog("ddd"));






    }

}
